/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import ch.cyberduck.core.sds.io.swagger.client.model.GroupInfo;
import ch.cyberduck.core.sds.io.swagger.client.model.PendingGroupData;
import ch.cyberduck.core.sds.io.swagger.client.model.PendingUserData;
import ch.cyberduck.core.sds.io.swagger.client.model.UserInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Pending assignment information
 */
@Schema(description = "Pending assignment information")

public class PendingAssignmentData {
  @JsonProperty("roomId")
  private Long roomId = null;

  @JsonProperty("roomName")
  private String roomName = null;

  /**
   * Acceptance state:  * &#x60;ACCEPTED&#x60;  * &#x60;WAITING&#x60;  * &#x60;DENIED&#x60;
   */
  public enum StateEnum {
    ACCEPTED("ACCEPTED"),
    DENIED("DENIED"),
    WAITING("WAITING");

    private String value;

    StateEnum(String value) {
      this.value = value;
    }
    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }
    @JsonCreator
    public static StateEnum fromValue(String input) {
      for (StateEnum b : StateEnum.values()) {
        if (b.value.equals(input)) {
          return b;
        }
      }
      return null;
    }

  }  @JsonProperty("state")
  private StateEnum state = null;

  @JsonProperty("userInfo")
  private UserInfo userInfo = null;

  @JsonProperty("groupInfo")
  private GroupInfo groupInfo = null;

  @JsonProperty("pendingUserData")
  private PendingUserData pendingUserData = null;

  @JsonProperty("pendingGroupData")
  private PendingGroupData pendingGroupData = null;

  public PendingAssignmentData roomId(Long roomId) {
    this.roomId = roomId;
    return this;
  }

   /**
   * Room ID
   * @return roomId
  **/
  @Schema(required = true, description = "Room ID")
  public Long getRoomId() {
    return roomId;
  }

  public void setRoomId(Long roomId) {
    this.roomId = roomId;
  }

  public PendingAssignmentData roomName(String roomName) {
    this.roomName = roomName;
    return this;
  }

   /**
   * Room name
   * @return roomName
  **/
  @Schema(required = true, description = "Room name")
  public String getRoomName() {
    return roomName;
  }

  public void setRoomName(String roomName) {
    this.roomName = roomName;
  }

  public PendingAssignmentData state(StateEnum state) {
    this.state = state;
    return this;
  }

   /**
   * Acceptance state:  * &#x60;ACCEPTED&#x60;  * &#x60;WAITING&#x60;  * &#x60;DENIED&#x60;
   * @return state
  **/
  @Schema(required = true, description = "Acceptance state:  * `ACCEPTED`  * `WAITING`  * `DENIED`")
  public StateEnum getState() {
    return state;
  }

  public void setState(StateEnum state) {
    this.state = state;
  }

  public PendingAssignmentData userInfo(UserInfo userInfo) {
    this.userInfo = userInfo;
    return this;
  }

   /**
   * Get userInfo
   * @return userInfo
  **/
  @Schema(required = true, description = "")
  public UserInfo getUserInfo() {
    return userInfo;
  }

  public void setUserInfo(UserInfo userInfo) {
    this.userInfo = userInfo;
  }

  public PendingAssignmentData groupInfo(GroupInfo groupInfo) {
    this.groupInfo = groupInfo;
    return this;
  }

   /**
   * Get groupInfo
   * @return groupInfo
  **/
  @Schema(required = true, description = "")
  public GroupInfo getGroupInfo() {
    return groupInfo;
  }

  public void setGroupInfo(GroupInfo groupInfo) {
    this.groupInfo = groupInfo;
  }

  public PendingAssignmentData pendingUserData(PendingUserData pendingUserData) {
    this.pendingUserData = pendingUserData;
    return this;
  }

   /**
   * Get pendingUserData
   * @return pendingUserData
  **/
  @Schema(required = true, description = "")
  public PendingUserData getPendingUserData() {
    return pendingUserData;
  }

  public void setPendingUserData(PendingUserData pendingUserData) {
    this.pendingUserData = pendingUserData;
  }

  public PendingAssignmentData pendingGroupData(PendingGroupData pendingGroupData) {
    this.pendingGroupData = pendingGroupData;
    return this;
  }

   /**
   * Get pendingGroupData
   * @return pendingGroupData
  **/
  @Schema(required = true, description = "")
  public PendingGroupData getPendingGroupData() {
    return pendingGroupData;
  }

  public void setPendingGroupData(PendingGroupData pendingGroupData) {
    this.pendingGroupData = pendingGroupData;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PendingAssignmentData pendingAssignmentData = (PendingAssignmentData) o;
    return Objects.equals(this.roomId, pendingAssignmentData.roomId) &&
        Objects.equals(this.roomName, pendingAssignmentData.roomName) &&
        Objects.equals(this.state, pendingAssignmentData.state) &&
        Objects.equals(this.userInfo, pendingAssignmentData.userInfo) &&
        Objects.equals(this.groupInfo, pendingAssignmentData.groupInfo) &&
        Objects.equals(this.pendingUserData, pendingAssignmentData.pendingUserData) &&
        Objects.equals(this.pendingGroupData, pendingAssignmentData.pendingGroupData);
  }

  @Override
  public int hashCode() {
    return Objects.hash(roomId, roomName, state, userInfo, groupInfo, pendingUserData, pendingGroupData);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PendingAssignmentData {\n");
    
    sb.append("    roomId: ").append(toIndentedString(roomId)).append("\n");
    sb.append("    roomName: ").append(toIndentedString(roomName)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    userInfo: ").append(toIndentedString(userInfo)).append("\n");
    sb.append("    groupInfo: ").append(toIndentedString(groupInfo)).append("\n");
    sb.append("    pendingUserData: ").append(toIndentedString(pendingUserData)).append("\n");
    sb.append("    pendingGroupData: ").append(toIndentedString(pendingGroupData)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
